package com.xbs.entity;

import java.sql.Date;

import com.xbs.utils.EnterpriseUtils;

public class EpOptionEitity {
	/**
	 * 企业订单编号
	 */
	private String eo_order_id;
	
	/**
	 * 企业账号
	 */
	private String eo_account;
	/**
	 * 预定取车时间
	 */
	private Date eo_reserve_get_time;
	/**
	 * 实际还车时间
	 */
	private Date eo_fact_return_time;
	/**
	 * 订单状态
	 */
	private String eo_order_status;
	/**
	 * 订单类型
	 */
	private Integer eo_rent_type;
	/**
	 * 车队每日花费
	 */
	private Double perdayCash;
	/**
	 *车队总花费
	 */
	private EnterpriseUtils  util=new EnterpriseUtils();
	private Double sumCash;
	public Double getSumCash() {
		if(eo_fact_return_time==null){
			eo_fact_return_time=new Date(System.currentTimeMillis());
		}
		int days=util.daysBetween(eo_reserve_get_time,eo_fact_return_time);
		return perdayCash*days;
	}
	public void setSumCash(Double sumCash) {
		
		
		this.sumCash = sumCash;
	}
	public Double getPerdayCash() {
		return perdayCash;
	}
	public void setPerdayCash(Double perdayCash) {
		this.perdayCash = perdayCash;
	}
	public String getEo_order_id() {
		return eo_order_id;
	}
	public void setEo_order_id(String eo_order_id) {
		this.eo_order_id = eo_order_id;
	}
	public String getEo_account() {
		return eo_account;
	}
	public void setEo_account(String eo_account) {
		this.eo_account = eo_account;
	}
	public Date getEo_reserve_get_time() {
		return eo_reserve_get_time;
	}
	public void setEo_reserve_get_time(Date eo_reserve_get_time) {
		this.eo_reserve_get_time = eo_reserve_get_time;
	}
	public Date getEo_fact_return_time() {
		return eo_fact_return_time;
	}
	public void setEo_fact_return_time(Date eo_fact_return_time) {
		this.eo_fact_return_time = eo_fact_return_time;
	}
	public String getEo_order_status() {
		return eo_order_status;
	}
	public void setEo_order_status(String eo_order_status) {
		this.eo_order_status = eo_order_status;
	}
	public Integer getEo_rent_type() {
		return eo_rent_type;
	}
	public void setEo_rent_type(Integer eo_rent_type) {
		this.eo_rent_type = eo_rent_type;
	}
	
}
